import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/emo/list',
    method: 'get',
    params
  })
}
export function findPage(page) {
  return request({
    url: '/emo/page',
    method: 'post',
    data: page
  })
}
export function getById(id) {
  return request({
    url: '/emo/getById/' + id,
    method: 'get'
  })
}
export function save(emo) {
  return request({
    url: '/emo/add',
    method: 'post',
    data: emo
  })
}
export function updateById(emo) {
  return request({
    url: '/emo/updateById',
    method: 'post',
    data: emo
  })
}
export function delById(id) {
  return request({
    url: '/emo/del/' + id,
    method: 'delete'
  })
}
